﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpage.Master" AutoEventWireup="true" CodeBehind="QuanLyMayBay.aspx.cs" Inherits="AirPlane.QuanLyMayBay" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
 <style type="text/css">
        .style1
        {
        	width:90%;
        	
        }
        .style2
        {
            width: 385px;
        }
         </style>
   
       
 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
   <ContentTemplate>
<%--   <script type="text/javascript">
       function pageLoad() {
           $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_0').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_1').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_2').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_3').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_4').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_5').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_6').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_7').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_8').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_9').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_10').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_11').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_12').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_13').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_14').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_15').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_16').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_17').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_18').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_19').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_20').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_21').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_22').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_23').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_24').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_25').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_26').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_27').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_28').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_29').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_30').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_31').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_32').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_33').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_34').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_35').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_36').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_37').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_38').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_39').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_TextBox4_40').datepicker(); }); $(function () { $('#ContentPlaceHolder1_gwMayBay_txtngayNhap').datepicker(); });
       }
</script>--%>
<asp:Label ID="Label9" runat="server" Text=""></asp:Label>
<table align="center" class="style1">
        <tr>
            <td colspan="2">
             <h3 class="page-title-517">QUẢN LÝ MÁY BAY</h3>
             </td>
        </tr>
          
       
    
    </table>
     <div id="search-Chuyen-Bay-Di">
      <asp:Label ID="lbMayBay" runat="server" Text=""></asp:Label>
      <asp:GridView ID="gwMayBay" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" GridLines="None" ForeColor="#333333" DataKeyNames="ID_mayBay" 
             AllowPaging="True" CellSpacing="2" HorizontalAlign="Center" 
             onpageindexchanging="gwMayBay_PageIndexChanging" 
             onrowcancelingedit="gwMayBay_RowCancelingEdit" 
             onrowdeleting="gwMayBay_RowDeleting" onrowediting="gwMayBay_RowEditing" 
             onrowupdating="gwMayBay_RowUpdating" ShowFooter="True">
        <AlternatingRowStyle BackColor="White" />
         <Columns>
             <asp:TemplateField HeaderText="ID">
                 <ItemTemplate>
                     <asp:Label ID="Label1" runat="server" Text='<%# Bind("ID_mayBay") %>'></asp:Label>
                 </ItemTemplate>
                 <HeaderStyle HorizontalAlign="Center" Width="50px" />
                 <ItemStyle HorizontalAlign="Center" Width="50px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Hãng">
                 <EditItemTemplate>
                     <asp:TextBox ID="TextBox2"  Text='<%# Bind("hangMayBay") %>' runat="server" 
                         Width="80px"></asp:TextBox>
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:TextBox ID="txthangBay" runat="server" Width="80px"></asp:TextBox>
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:Label ID="Label2" runat="server" Text='<%# Bind("hangMayBay") %>'></asp:Label>
                 </ItemTemplate>
                 <HeaderStyle HorizontalAlign="Center" Width="100px" />
                 <ItemStyle HorizontalAlign="Center" Width="100px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Số Hiệu">
                 <EditItemTemplate>
                   <%--  <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("soHieuMayBay") %>' 
                         Width="90px"></asp:TextBox>--%>
                   <asp:Label ID="Label31" runat="server" Text='<%# Bind("soHieuMayBay") %>'></asp:Label>
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:TextBox ID="txtsoHieu" runat="server" Width="100px"></asp:TextBox>
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:Label ID="Label3" runat="server" Text='<%# Bind("soHieuMayBay") %>'></asp:Label>
                 </ItemTemplate>
                 <HeaderStyle HorizontalAlign="Center" Width="150px" />
                 <ItemStyle HorizontalAlign="Center" Width="150px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Ngày Nhập">
                 <EditItemTemplate>
                     <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("ngayNhap") %>' 
                         Width="90px"></asp:TextBox>
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:TextBox ID="txtngayNhap" runat="server" Width="100px"></asp:TextBox>
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:Label ID="Label4" runat="server" Text='<%# Bind("ngayNhap") %>'></asp:Label>
                 </ItemTemplate>
                 <HeaderStyle HorizontalAlign="Center" Width="100px" />
                 <ItemStyle HorizontalAlign="Center" Width="100px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Tải Trọng">
                 <EditItemTemplate>
                     <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("taiTrong") %>' 
                         Width="90px"></asp:TextBox>
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:TextBox ID="txttaiTrong" runat="server" Width="100px" Text = '0'></asp:TextBox>
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:Label ID="Label5" runat="server" Text='<%# Bind("taiTrong") %>'></asp:Label>
                 </ItemTemplate>
                 <HeaderStyle HorizontalAlign="Center" Width="100px" />
                 <ItemStyle HorizontalAlign="Center" Width="100px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Giá Nhập">
                 <EditItemTemplate>
                     <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("giaNhap") %>' 
                         Width="90px"></asp:TextBox>
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:TextBox ID="txtgiaNhap" runat="server" Width="100px" Text='0'></asp:TextBox>
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:Label ID="Label6" runat="server" Text='<%# Bind("giaNhap") %>'></asp:Label>
                 </ItemTemplate>
                 <HeaderStyle HorizontalAlign="Center" Width="100px" />
                 <ItemStyle HorizontalAlign="Center" Width="100px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Số Chỗ">
                 <EditItemTemplate>
                     <asp:Label ID="lbhang1_edit" runat="server" Font-Bold="True" Font-Italic="True" 
                         Text="Thương Nhân:"></asp:Label>
                     <asp:TextBox ID="txtSoChoHang1_edit" runat="server" Width="100px"  Text='<%# Bind("soChoNgoiHang1") %>'></asp:TextBox>
                     <br />
                     <asp:Label ID="lbhang2_edit" runat="server" Font-Bold="True" Font-Italic="True" 
                         Text="Phổ Thông:"></asp:Label>
                     <asp:TextBox ID="txtSoChoHang2_edit" runat="server" 
                         Text='<%# Bind("soChoNgoiHang2") %>' Width="100px"></asp:TextBox>
                     <br />
                     <asp:Label ID="lbhang3_edit" runat="server" Font-Bold="True" Font-Italic="True" 
                         Text="Tiết Kiệm:"></asp:Label>
                     <asp:TextBox ID="txtSoChoHang3_edit" runat="server" 
                         Text='<%# Bind("soChoNgoiHang3") %>' Width="100px"></asp:TextBox>
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:Label ID="lbhang1" runat="server" Font-Bold="True" Font-Italic="True" 
                         Text="Thương Nhân"></asp:Label>
                     <asp:TextBox ID="txtSoChoHang1" runat="server" Width="100px" Text = '0'></asp:TextBox>
                     <br />
                     <asp:Label ID="lbhang2" runat="server" Font-Bold="True" Font-Italic="True" 
                         Text="Phổ Thông"></asp:Label>
                     <asp:TextBox ID="txtSoChoHang2" runat="server" Text='0' 
                         Width="100px"></asp:TextBox>
                     <br />
                     <asp:Label ID="lbhang3" runat="server" Font-Bold="True" Font-Italic="True" 
                         Text="Tiết Kiệm"></asp:Label>
                     <asp:TextBox ID="txtSoChoHang3" runat="server" Text='0' 
                         Width="100px"></asp:TextBox>
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:Label ID="lb1" runat="server" Text="Thương Gia :"></asp:Label>
                     <asp:Label ID="lbSoChoHang1" runat="server" 
                         Text='<%# Bind("soChoNgoiHang1") %>'></asp:Label>
                     <br />
                      <asp:Label ID="lb2" runat="server" Text="Phổ Thông :"></asp:Label>
                     <asp:Label ID="lbSoChoHang2" runat="server" 
                         Text='<%# Bind("soChoNgoiHang2") %>'></asp:Label>
                     <br />
                      <asp:Label ID="lb3" runat="server" Text="Tiết Kiệm:"></asp:Label>
                     <asp:Label ID="lbSoChoHang3" runat="server" 
                         Text='<%# Bind("soChoNgoiHang3") %>'></asp:Label>
                 </ItemTemplate>
                 <HeaderStyle HorizontalAlign="Center" Width="100px" />
                 <ItemStyle Width="100px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Số Km Đã Bay">
                 <EditItemTemplate>
                     <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("soKmDaBay") %>' 
                         Width="90px"></asp:TextBox>
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:TextBox ID="txtsoKmDaBay" runat="server" Width="100px" Text='0'></asp:TextBox>
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:Label ID="Label8" runat="server" Text='<%# Bind("soKmDaBay") %>'></asp:Label>
                 </ItemTemplate>
                 <HeaderStyle HorizontalAlign="Center" Width="100px" />
                 <ItemStyle Width="100px" />
             </asp:TemplateField>
             <asp:TemplateField ShowHeader="False">
                 <EditItemTemplate>
                     <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="True" 
                         CommandName="Update" ImageUrl="~/images/save.gif" Text="Update" 
                         ToolTip="Lưu Lại" />
                     &nbsp;<asp:ImageButton ID="ImageButton2" runat="server" CausesValidation="False" 
                         CommandName="Cancel" ImageUrl="~/images/delete.gif" Text="Cancel" 
                         ToolTip="Hoãn Lại" />
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:ImageButton ID="imgInsert_MayBay" runat="server" 
                         ImageUrl="~/images/add.png" onclick="imgInsert_MayBay_Click" />
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" 
                         CommandName="Edit" ImageUrl="~/images/edit.gif" Text="Edit" 
                         ToolTip="Cập Nhật Lại" />
                     &nbsp;<asp:ImageButton ID="ImageButton2" runat="server" CausesValidation="False" 
                         CommandName="Delete" ImageUrl="~/images/delete-item.jpg" Text="Delete" 
                         ToolTip="Xóa" />
                 </ItemTemplate>
                 <HeaderStyle HorizontalAlign="Center" Width="70px" />
                 <ItemStyle HorizontalAlign="Center" Width="70px" />
             </asp:TemplateField>
    </Columns>
         <EditRowStyle BackColor="#FFFFFF" />
        <FooterStyle BackColor="#DFDFDF" ForeColor="White" Font-Bold="True" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />

    </asp:GridView>
    
     </div>
     </ContentTemplate>
    </asp:UpdatePanel>
    <table align="center" class="style1">
      <tr>
            <td class="style2"></td>
               
            <td>
                
                <input id="btn_tim_kiem_may_bay" type="button" value="Tìm Kiếm Máy Bay"  class ="button2" />
            </td>
        </tr>
     </table>
     <div id="timKiemMayBay" title="Tìm Kiếm Máy Bay">
       <table align="center" class="style1-fancybox">
        <tr>
            <td colspan="2">
             <h3 class="page-title-517">TÌM KIẾM MÁY BAY</h3>
             </td>
        </tr>
        <tr>
            <td class="style2-fancybox" >
              <span style="margin-left:20px">
                Số Hiệu Máy Bay: 
                <asp:DropDownList ID="ddlMayBay" runat="server"  
                  DataTextField="soHieuMayBay" DataValueField="soHieuMayBay" CssClass="ddlSanBay1" ></asp:DropDownList></span></td>
            <td >
              <span style="margin-left:20px">
                <asp:Button ID="btnSearch_MayBay" runat="server" CssClass="btnSearch-ChangBay-517"   />
              </span></td>
              
        </tr>
        
      </table>
      <div id= "result">
      </div>
    </div>

</asp:Content>
